package com.dy.design_pattern_study.visitor_pattern.dome1.impl;

import com.dy.design_pattern_study.visitor_pattern.dome1.Person;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-24
 * @Content
 */
public class Man extends Person {
    @Override
    public void getConclusion() {
        if (getAction().equals("成功")){
            System.out.println(getAction() + "，the woman behind his,the woman is great");
            System.out.println("类名：" + getClass().getSimpleName());

        } else if (getAction().equals("失败")) {
            System.out.println(getAction() + "，闷头喝闷酒");
            System.out.println("类名：" + getClass().getSimpleName());
        } else if (getAction().equals("恋爱")) {
            System.out.println(getAction() + "，不懂装懂，不会装会");
            System.out.println("类名：" + getClass().getSimpleName());
        }
    }
}
